package com.quickcancellation.crm.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2023-03-05
 */
@TableName("pd_t_stockdetail")
@ApiModel(value = "Stockdetail对象", description = "")
public class Stockdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("进出状态 1 - 库存增加 2-库存减少")
    private Integer type;

    @ApiModelProperty("产品编码")
    private String productCode;

    @ApiModelProperty("单品数量")
    private Integer singleCount;

    @ApiModelProperty("分销数量")
    private Long batchCount;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("创建人")
    private String createOp;

    @ApiModelProperty("订单/退货单 号码")
    private String orderCode;

    @ApiModelProperty("库存变动类型 1-调拨进 2-调拨出 3-下单到货 4-退货入库 5-正常仓库进入")
    private Integer stockType;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("审核状态 0-待审核 1-审核通过 2-审核不通过 3-无需审核 4-审核不通过")
    private Integer auditType;

    @ApiModelProperty("调拨进库中间商/经销商id")
    private Long inDisAgId;

    @ApiModelProperty("调拨出库中间商/经销商id")
    private Long outDisAgId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }
    public Integer getSingleCount() {
        return singleCount;
    }

    public void setSingleCount(Integer singleCount) {
        this.singleCount = singleCount;
    }
    public Long getBatchCount() {
        return batchCount;
    }

    public void setBatchCount(Long batchCount) {
        this.batchCount = batchCount;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getCreateOp() {
        return createOp;
    }

    public void setCreateOp(String createOp) {
        this.createOp = createOp;
    }
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
    public Integer getStockType() {
        return stockType;
    }

    public void setStockType(Integer stockType) {
        this.stockType = stockType;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getAuditType() {
        return auditType;
    }

    public void setAuditType(Integer auditType) {
        this.auditType = auditType;
    }
    public Long getInDisAgId() {
        return inDisAgId;
    }

    public void setInDisAgId(Long inDisAgId) {
        this.inDisAgId = inDisAgId;
    }
    public Long getOutDisAgId() {
        return outDisAgId;
    }

    public void setOutDisAgId(Long outDisAgId) {
        this.outDisAgId = outDisAgId;
    }

    @Override
    public String toString() {
        return "Stockdetail{" +
            "id=" + id +
            ", type=" + type +
            ", productCode=" + productCode +
            ", singleCount=" + singleCount +
            ", batchCount=" + batchCount +
            ", createTime=" + createTime +
            ", createOp=" + createOp +
            ", orderCode=" + orderCode +
            ", stockType=" + stockType +
            ", remark=" + remark +
            ", auditType=" + auditType +
            ", inDisAgId=" + inDisAgId +
            ", outDisAgId=" + outDisAgId +
        "}";
    }
}
